write-host
write-host
					 
$SourceDir =  "D:\Temp\RoboSource"					 
$TargetDir =  "D:\Temp\RoboTarget"

$fileExcludes = '"thumbs.db" "*.log"  "*.zip" "*.rar" "*.7z" '
$directoryExcludes = '"_svn" "bin" "obj" '

$robocopy = "D:\Scripting\RoboExe\robocopy.exe"

write-host SourceDir $SourceDir
write-host TargetDir $TargetDir
write-host RobocopyExePath $robocopy
write-host FileExcludes $fileExcludes
write-host DirectoryExcludes $directoryExcludes

&$robocopy "$SourceDir" "$TargetDir" /E /R:3 /W:1 /COPYALL /XD $directoryExcludes  /XF $fileExcludes
#&$robocopy "$SourceDir" "$TargetDir" /E /R:3 /W:1 /COPYALL /XD "_svn" "bin" "obj"  /XF "thumbs.db" "*.log"  "*.zip" "*.rar" "*.7z" 



#read-host "Please enter your age:"
#read-host 

#&$sevenZip a -t7z "$targetpath" `@"$listFilePath" `-w"$targetdir" -mx=9 
#robocopy "d:\projekte" "f:\projekte" /MIR /R:3 /W:1 /COPYALL /XD "_svn" "bin" "obj"  /XF "thumbs.db" "*.log"  "*.zip" "*.rar" "*.7z" 


